<style>
	#add_menu_form input , #modify_menu_form input{
		width:200px;
	}
	#add_menu_form td ,#modify_menu_form td{
		height: 30px;
	}
</style>
<!-- 工具栏 -->
<div id="tool-menu">    
<table>
    <tr>
        <td>
            <a href="#" id="aaa1" class="easyui-linkbutton" onclick='show_add_mmenu()' data-options="iconCls:'icon-standard-folder-page',plain:true">新建主菜单</a>
            <a href="#" id="aaa1" class="easyui-linkbutton" onclick='show_add_smenu()' data-options="iconCls:'icon-standard-folder-page',plain:true">新建子菜单</a>
            <a href="#" id="aaa1" class="easyui-linkbutton" onclick='del_menu()' data-options="iconCls:'icon-standard-folder-page',plain:true">删除</a>
            <a href="#" id="aaa1" class="easyui-linkbutton" onclick='show_modify_menu()' data-options="iconCls:'icon-standard-folder-page',plain:true">修改</a>
        </td>
    </tr>
</table>
</div>
<!-- 工具栏end -->
<!-- 新建菜单对话框 -->
<div id="add_menu_dialog" class="easyui-dialog" style="width:360px; height: 240px; padding: 10px 50px; overflow: hidden;" title="新建菜单" data-options="iconCls:'icon-standard-folder-page',buttons:'#add_menu_tool',closed:true,resizable:false,modal:true,closable:true">
	<form id="add_menu_form" method="post">
	<input type="hidden" id="pid" name="pid"/>
	    	<table cellpadding="5">
	    		<tr>
	    			<td>标题:</td>
	    			<td><input class="easyui-textbox" type="text" id="text" name="text" data-options="required:true,prompt:'请输入菜单名称'"  ></input></td>
	    		</tr>
	    		<tr>
	    			<td>URL:</td>
	    			<td><input class="easyui-textbox" type="text" id="url" name="url" data-options="required:true,prompt:'请输入URL:如Admin/Name/add'" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>图标:</td>
	    			<td>
	    		<!-- 	<input class="easyui-textbox" type="text" id="icon" name="icon" data-options="" ></input> -->
				<input id="icon" class="easyui-combobox" name="icon"   
				    data-options="valueField:'value',textField:'text',showItemIcon: true,url:'__APP__/Admin/Public/iconlist',panelHeight:'auto',editable:false"/> 
	    			</td>
	    		</tr>

	    		<tr>
	    			<td>序号:</td>
	    			<td>
	    			<input class="easyui-numberbox" id="ordernumber" name="ordernumber" data-options="" ></input>
	    			</td>
	    		</tr>
	    		
	    	</table>
	    </form>

</div>
<div id="add_menu_tool">
	<div class="tool_tip">添加后会在列表中出现！！</div>
	<a href="#" id="addok" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
		onclick="add_menu()">确认</a>
	<a href="#" class="easyui-linkbutton"
		data-options="iconCls:'icon-cancel'"
		onclick="javascript:$('#add_menu_dialog').dialog('close')">取消</a>
</div>
<!-- 新建菜单对话框 end-->

<!-- 修改菜单对话框 -->
<div id="modify_menu_dialog" class="easyui-dialog" style="width:360px; height: 280px; padding: 10px 50px; overflow: hidden;" title="修改菜单" data-options="iconCls:'icon-standard-folder-page',buttons:'#modify_menu_tool',closed:true,resizable:false,modal:true,closable:true">
	<form id="modify_menu_form" method="post">
			<input type="hidden" id="id" name="id"/>
	    	<table cellpadding="5">
	    		<tr>
	    			<td>标题:</td>
	    			<td><input class="easyui-textbox" type="text" id="text" name="text" data-options="required:true,prompt:'请输入菜单名称'"  ></input></td>
	    		</tr>
	    		<tr>
	    			<td>URL:</td>
	    			<td><input class="easyui-textbox" type="text" id="url" name="url" data-options="required:true,prompt:'请输入URL:如Admin/Name/add'" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>图标:</td>
	    			<td>
	    				<input id="icon" class="easyui-combobox" name="icon"   
				    data-options="valueField:'value',textField:'text',showItemIcon: true,url:'__APP__/Admin/Manage/iconlist',panelHeight:'auto',editable:false"/> 
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>序号:</td>
	    			<td><input class="easyui-numberbox" id="ordernumber" name="ordernumber" data-options="" ></input></td>
	    		</tr>
	    		<tr>
	    			<td>父级:</td>
	    			<td>
						<input id="pidd" class="easyui-combobox" name="pid"   
    data-options="valueField:'value',textField:'text',url:'__APP__/Admin/Manage/showfmenu',panelHeight:'auto',editable:false"/> 
	    			</td>
	    		</tr>
	    	</table>
	    </form>

</div>
<div id="modify_menu_tool">
	<div class="tool_tip">添加后会在列表中出现！！</div>
	<a href="#" id="modifyok" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
		onclick="modify_menu()">确认</a>
	<a href="#" class="easyui-linkbutton"
		data-options="iconCls:'icon-cancel'"
		onclick="javascript:$('#modify_menu_dialog').dialog('close')">取消</a>
</div>
<!-- 修改菜单对话框 end-->
